package org.omg.GIOP;

//
// Enum definition : LocateStatusType_1_0
//
// @author OpenORB Compiler
//
public final class LocateStatusType_1_0 implements
		org.omg.CORBA.portable.IDLEntity {
	//
	// Internal member value
	//
	private int _LocateStatusType_1_0_value;

	//
	// Enum member UNKNOWN_OBJECT value
	//
	public static final int _UNKNOWN_OBJECT = 0;

	//
	// Enum member UNKNOWN_OBJECT
	//
	public static final LocateStatusType_1_0 UNKNOWN_OBJECT = new LocateStatusType_1_0(
			_UNKNOWN_OBJECT);

	//
	// Enum member OBJECT_HERE value
	//
	public static final int _OBJECT_HERE = 1;

	//
	// Enum member OBJECT_HERE
	//
	public static final LocateStatusType_1_0 OBJECT_HERE = new LocateStatusType_1_0(
			_OBJECT_HERE);

	//
	// Enum member OBJECT_FORWARD value
	//
	public static final int _OBJECT_FORWARD = 2;

	//
	// Enum member OBJECT_FORWARD
	//
	public static final LocateStatusType_1_0 OBJECT_FORWARD = new LocateStatusType_1_0(
			_OBJECT_FORWARD);

	//
	// Return the internal member value
	// @return the member value
	//
	public int value() {
		return _LocateStatusType_1_0_value;
	}

	//
	// Return a enum member from its value
	// @param an enum value
	// @return an enum member
	//
	public static LocateStatusType_1_0 from_int(int value) {
		switch (value) {
		case 0:
			return UNKNOWN_OBJECT;
		case 1:
			return OBJECT_HERE;
		case 2:
			return OBJECT_FORWARD;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param the enum value for this new member
	//
	private LocateStatusType_1_0(int value) {
		_LocateStatusType_1_0_value = value;
	}

}
